﻿using System;

namespace Fetches.Fetch.Dto
{
   public class RequestCookie
    {
        public readonly string Name;
        public readonly string Value;
        public readonly string Path;
        public readonly string Domain;
        public readonly DateTime Expiry;
        public readonly bool IsSecure;
        public readonly bool IsHttpOnly;

        public RequestCookie(string name, string value, string path, string domain, DateTime expiry, bool isSecure, bool isHttpOnly)
        {
            Name = name;
            Value = value;
            Path = path;
            Domain = domain;
            Expiry = expiry;
            IsSecure = isSecure;
            IsHttpOnly = isHttpOnly;
        }
    }
}
